import * as types from './types';
import {RECEIVED_ORDER_STATUSES} from './types';

export function userDidChanged() {
    return {
        type: types.USER_DID_CHANGE,
    };
}

export function receiveUserInfo(userInfo) {
    return {
        payload: userInfo,
        type: types.RECEIVE_USERINFO,
    };
}

export function userDidSignIn() {
    return {
        type: types.USER_DID_SIGNIN,
    };
}

export function userDidSignOut() {
    return {
        type: types.USER_DID_SIGNOUT,
    };
}

export function receivedOrderStatus(orderStatus) {
    return {
        payload: orderStatus,
        type: types.RECEIVED_ORDER_STATUSES,
    };
}
